package com.fushenlan.epidemicControl.annotation;

import java.lang.annotation.*;

/**
 * @author Administrator
 * @date 2022/5/4 4:37
 */
@Documented
@Inherited
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestLimit {
    // 在 second 秒内，最大只能请求 maxCount 次
    int second() default 1;

    int maxCount() default 1;
}
